
import Vue from 'vue'
import Router from 'vue-router'

//登录和工厂list的页面
const topNav = r => require.ensure([], () => r(require('@/components/nav/topNav')), 'topNav')//公共组件头
const login2 = r => require.ensure([], () => r(require('@/page/login2')), 'login2')
const wechatlogin = r => require.ensure([], () => r(require('@/page/wechatlogin')), 'wechatlogin')
const wechatregister = r => require.ensure([], () => r(require('@/page/wechatregister')), 'wechatregister')
const index2 = r => require.ensure([], () => r(require('@/page/index2')), 'index2')
const register= r => require.ensure([], () => r(require('@/page/register')), 'register')
const factoryList = r => require.ensure([], () => r(require('@/page/factory/factoryList')), 'factoryList')
const factoryForm = r => require.ensure([], () => r(require('@/page/factory/factoryForm')), 'factoryForm')
const changePass = r => require.ensure([], () => r(require('@/page/factory/changePass')), 'changePass')
const factoryManage = r=> require.ensure([], () => r(require('@/page/factory/factoryManage')), 'factoryManage')

//demo项目有关的页面
const demoIndex = r => require.ensure([], () => r(require('@/page/project/demo/demoIndex')), 'demoIndex')
const demoOrderForm = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/saleOrder/orderForm')), 'orderForm')
const demoSaleOrderList = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/saleOrder/saleOrderList')), 'demoSaleOrderList')
const demoLaddingBills = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/laddingBills/laddingBills')), 'demoLaddingBills')
const demoDataCenter = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/dataCenter/dataCenter')), 'demoLaddingBills')
const demoOrderDetail = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/laddingBills/addBills/orderDetail')), 'demoOrderDetail')
const demoAddBills = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/laddingBills/addBills/addBills')), 'demoAddBills')
const demoOrderListForAddBill = r => require.ensure([], () => r(require('@/page/project/demo/menuChild/laddingBills/addBills/orderListForAddBills')), 'demoOrderListForAddBill')

//宏昌水泥
const hongchang = r => require.ensure([], () => r(require('@/page/project/hongchang/hongchangIndex')), 'hongchang')
const hongchangLaddingBills = r => require.ensure([], () => r(require('@/page/project/hongchang//menuChild/laddingBills/laddingBills')), 'hongchangLaddingBills')
const hongchangSaleOrderList = r => require.ensure([], () => r(require('@/page/project/hongchang//menuChild/saleOrder/saleOrderList')), 'hongchangSaleOrderList')
const historyOrder = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/historyOrder/historyOrder')), 'historyOrder')
const hongchangOrderListForAddBill = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/laddingBills/addBills/orderListForAddBills')), 'hongchangOrderListForAddBill')
const hongchangDataCenter = r => require.ensure([], () => r(require('@/page/project/hongchang//menuChild/dataCenter/dataCenter')), 'hongchangDataCenter')
const hongchangAddBills = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/laddingBills/addBills/addBills')), 'hongchangAddBills')
const hongchangOrderDetail = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/laddingBills/orderDetail')), 'hongchangOrderDetail')
const hongchangOrderForm = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/saleOrder/orderForm')), 'hongchangOrderForm')
const hongchangAddGrantBillAccountFirst = r => require.ensure([], () => r(require('@/page/project/hongchang/addGrantBillAccountFirst')), 'hongchangAddGrantBillAccountFirst')
const addGrantBill = r => require.ensure([], () => r(require('@/page/project/hongchang/addGrantBill')), 'addGrantBill')
const hongchangGrantBillsList = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/grantBills/grantBillsList')), 'hongchangGrantBillsList')
const hongchangGrantBillsForm = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/grantBills/grantBillsForm')), 'hongchangGrantBillsFrom')
const hongchangAddGrantBills = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/grantBills/addGrantBills')), 'hongchangAddGrantBills')

const hongchangReportIndex = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/reportForms/reportIndex')), 'hongchangReportIndex')
const hongchangReportCar = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/reportForms/reportCar')),'hongchangReportCar')
const hongchangReportCarForm = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/reportForms/reportCarForm')), 'hongchangReportCarForm')
//const demo2ReportOrder = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportOrder')),'demo2ReportOrder')
const hongchangReportQtySum = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/reportForms/reportQtySum')),'hongchangReportQtySum')


//山东金玺泰集团
const jinxitai = r => require.ensure([], () => r(require('@/page/project/jinxitai/jinxitaiIndex')), 'jinxitai')
const jinxitaiLaddingBills = r => require.ensure([], () => r(require('@/page/project/hongchang/menuChild/laddingBills/laddingBills')), 'jinxitaiLaddingBills')
const jinxitaiSaleOrderList = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/saleOrder/saleOrderList')), 'jinxitaiSaleOrderList')
const jinxitaiHistoryOrder = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/historyOrder/historyOrder')), 'jinxitaiHistoryOrder')
const jinxitaiOrderListForAddBill = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/laddingBills/addBills/orderListForAddBills')), 'jinxitaiOrderListForAddBill')
const jinxitaiDataCenter = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/dataCenter/dataCenter')), 'jinxitaiDataCenter')
const jinxitaiAddBills = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/laddingBills/addBills/addBills')), 'jinxitaiAddBills')
const jinxitaiOrderDetail = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/laddingBills/orderDetail')), 'jinxitaiOrderDetail')
const jinxitaiOrderForm = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/saleOrder/orderForm')), 'hongchangOrderForm')
const jinxitaiAddGrantBillAccountFirst = r => require.ensure([], () => r(require('@/page/project/jinxitai/addGrantBillAccountFirst')), 'jinxitaiAddGrantBillAccountFirst')
const jinxitaiAddGrantBill = r => require.ensure([], () => r(require('@/page/project/jinxitai/addGrantBill')), 'addGrantBill')
const jinxitaiGrantBillsList = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/grantBills/grantBillsList')), 'jinxitaiGrantBillsList')
const jinxitaiGrantBillsForm = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/grantBills/grantBillsForm')), 'jinxitaiGrantBillsFrom')
const jinxitaiAddGrantBills = r => require.ensure([], () => r(require('@/page/project/jinxitai/menuChild/grantBills/addGrantBills')), 'jinxitaiAddGrantBills')

//demo2数量式
const demo2 = r => require.ensure([], () => r(require('@/page/project/demo2/demo2Index')), 'demo2')
const demo2SaleOrderList = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/saleOrder/saleOrderList')), 'demo2SaleOrderList')
const demo2OrderForm = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/saleOrder/orderForm')), 'demo2OrderForm')
const demo2GrantBillsList = r=> require.ensure([], () => r(require('@/page/project/demo2/menuChild/grantBills/grantBillsList')),'demo2GrantBillsList')
const demo2AddGrantBills = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/grantBills/addGrantBills')), 'demo2AddGrantBills')
const demo2GrantBillsForm = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/grantBills/grantBillsForm')),'demo2GrantBillsForm')
const demo2salesCarForm = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/grantBills/salesCarForm')),'demo2salesCarForm')

const demo2ReportIndex = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportIndex')), 'demo2ReportIndex')
const demo2ReportCar = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportCar')),'demo2ReportCar')
const demo2ReportCarForm = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportCarForm')), 'demo2ReportCarForm')
//const demo2ReportOrder = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportOrder')),'demo2ReportOrder')
const demo2ReportQtySum = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportQtySum')),'demo2ReportQtySum')


//Q01 数量式 通用
const Q01 = r => require.ensure([], () => r(require('@/page/project/Q01/Q01Index')), 'Q01')
const Q01SaleOrderList = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/saleOrder/saleOrderList')), 'Q01SaleOrderList')
const Q01OrderForm = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/saleOrder/orderForm')), 'Q01OrderForm')
const Q01GrantBillsList = r=> require.ensure([], () => r(require('@/page/project/Q01/menuChild/grantBills/grantBillsList')),'Q01GrantBillsList')
const Q01AddGrantBills = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/grantBills/addGrantBills')), 'Q01AddGrantBills')
const Q01GrantBillsForm = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/grantBills/grantBillsForm')),'Q01GrantBillsForm')
const Q01salesCarForm = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/grantBills/salesCarForm')),'Q01salesCarForm')

const Q01ReportIndex = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/reportForms/reportIndex')), 'Q01ReportIndex')
const Q01ReportCar = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/reportForms/reportCar')),'Q01ReportCar')
const Q01ReportCarForm = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/reportForms/reportCarForm')), 'Q01ReportCarForm')
const Q01ReportQtySum = r => require.ensure([], () => r(require('@/page/project/Q01/menuChild/reportForms/reportQtySum')),'Q01ReportQtySum')



//A01 金额式通用
const A01 = r => require.ensure([], () => r(require('@/page/project/A01/A01Index')), 'A01')
const A01LaddingBills = r => require.ensure([], () => r(require('@/page/project/A01//menuChild/laddingBills/laddingBills')), 'A01LaddingBills')
const A01SaleOrderList = r => require.ensure([], () => r(require('@/page/project/A01//menuChild/saleOrder/saleOrderList')), 'A01SaleOrderList')
const A01historyOrder = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/historyOrder/historyOrder')), 'A01historyOrder')
const A01OrderListForAddBill = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/laddingBills/addBills/orderListForAddBills')), 'A01OrderListForAddBill')
const A01DataCenter = r => require.ensure([], () => r(require('@/page/project/hongchang//menuChild/dataCenter/dataCenter')), 'A01DataCenter')
const A01AddBills = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/laddingBills/addBills/addBills')), 'A01AddBills')
const A01OrderDetail = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/laddingBills/orderDetail')), 'A01OrderDetail')
const A01OrderForm = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/saleOrder/orderForm')), 'A01OrderForm')
const A01AddGrantBillAccountFirst = r => require.ensure([], () => r(require('@/page/project/A01/addGrantBillAccountFirst')), 'A01AddGrantBillAccountFirst')
const A01addGrantBill = r => require.ensure([], () => r(require('@/page/project/A01/addGrantBill')), 'A01addGrantBill')
const A01GrantBillsList = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/grantBills/grantBillsList')), 'A01GrantBillsList')
const A01GrantBillsForm = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/grantBills/grantBillsForm')), 'A01GrantBillsFrom')
const A01AddGrantBills = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/grantBills/addGrantBills')), 'A01AddGrantBills')

const A01ReportIndex = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/reportForms/reportIndex')), 'A01ReportIndex')
const A01ReportCar = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/reportForms/reportCar')),'A01ReportCar')
const A01ReportCarForm = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/reportForms/reportCarForm')), 'A01ReportCarForm')
//const demo2ReportOrder = r => require.ensure([], () => r(require('@/page/project/demo2/menuChild/reportForms/reportOrder')),'demo2ReportOrder')
const A01ReportQtySum = r => require.ensure([], () => r(require('@/page/project/A01/menuChild/reportForms/reportQtySum')),'A01ReportQtySum')

Vue.use(Router)

var routes= [
    {
      path: '/',
      name: 'login',
      component: login2
    },

    {
      path: '/topNav',
      name: 'topNav',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: topNav
    },
    {
      path: '/login',
      name: 'login',
      component: login2
    },
     {
      path: '/wechatlogin',
      name: 'wechatlogin',
      component: wechatlogin	
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    {
      path: '/index2',
      name: 'index2',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: index2
    },
	{
     path: '/factoryList',
      name: 'factoryList',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: factoryList
	},
	{
	path: '/factoryForm',
      name: 'factoryForm',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: factoryForm
	},
	{
	path: '/changePass',
      name: 'changePass',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: changePass
	},
	{
	path: '/factoryManage',
      name: 'factoryManage',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: factoryManage
	},
	{
	path: '/addGrantBill',
      name: 'addGrantBill',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
        },
      component: addGrantBill
	},
	//
	{
		path: '/demo2',
		name: 'demo2',
		meta:{
			requireAuth: false,
		},
		component: demo2,
		children:[{
			path: '/demo2SaleOrderList',
			name: 'demo2SaleOrderList',
			meta:{
				requireAuth: false,
			},
			component: demo2SaleOrderList
		 },
		 {
		      path: '/demo2OrderForm',
		      name: 'demo2OrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demo2OrderForm
		   },
		   {
		      path: '/demo2GrantBillsList',
		      name: 'demo2GrantBillsList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demo2GrantBillsList
		   },
		   {
		   	 path: '/demo2AddGrantBills',
		   	 name: 'demo2AddGrantBills',
		   	 meta:{
		   	 	requireAuth: false,
		   	 },
		   	 component: demo2AddGrantBills
		   	
		   },
		   {
		   	path: '/demo2GrantBillsForm',
		   	name: 'demo2GrantBillsForm',
		   	meta:{
		   		requireAuth: false,
		   	},
		   	component: demo2GrantBillsForm
		   },
		   {
		   	path: '/demo2salesCarForm',
		   	name: 'demo2salesCarForm',
		   	meta:{
		   		requireAuth: false,
		   	},
		   	component:demo2salesCarForm
		   }
		   ,
		   {
		      path: '/demo2ReportIndex',
		      name: 'demo2ReportIndex',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demo2ReportIndex,
		      children:[{
      				path: '/demo2ReportCar',
      				name: 'demo2ReportCar',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      				component: demo2ReportCar
					}
//		      ,
//					{
//    				path: '/demo2ReportOrder',
//    				name: 'demo2ReportOrder',
//    				meta: {
//          			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
//    				},
//    			component: demo2ReportOrder
//				}
					,
				{
      				path: '/demo2ReportQtySum',
      				name: 'demo2ReportQtySum',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      			component: demo2ReportQtySum
				}
				]
		    }
		]
		
	},
	
	{
		path: '/Q01',
		name: 'Q01',
		meta:{
			requireAuth: false,
		},
		component: Q01,
		children:[{
			path: '/Q01SaleOrderList',
			name: 'Q01SaleOrderList',
			meta:{
				requireAuth: false,
			},
			component: Q01SaleOrderList
		 },
		 {
		      path: '/Q01OrderForm',
		      name: 'Q01OrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: Q01OrderForm
		   },
		   {
		      path: '/Q01GrantBillsList',
		      name: 'Q01GrantBillsList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: Q01GrantBillsList
		   },
		   {
		   	 path: '/Q01AddGrantBills',
		   	 name: 'Q01AddGrantBills',
		   	 meta:{
		   	 	requireAuth: false,
		   	 },
		   	 component: Q01AddGrantBills
		   	
		   },
		   {
		   	path: '/Q01GrantBillsForm',
		   	name: 'Q01GrantBillsForm',
		   	meta:{
		   		requireAuth: false,
		   	},
		   	component: Q01GrantBillsForm
		   },
		   {
		   	path: '/Q01salesCarForm',
		   	name: 'Q01salesCarForm',
		   	meta:{
		   		requireAuth: false,
		   	},
		   	component:Q01salesCarForm
		   }
		   ,
		   {
		      path: '/Q01ReportIndex',
		      name: 'Q01ReportIndex',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demo2ReportIndex,
		      children:[{
      				path: '/Q01ReportCar',
      				name: 'Q01ReportCar',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      				component: Q01ReportCar
					}
//		      ,
//					{
//    				path: '/demo2ReportOrder',
//    				name: 'demo2ReportOrder',
//    				meta: {
//          			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
//    				},
//    			component: demo2ReportOrder
//				}
					,
				{
      				path: '/Q01ReportQtySum',
      				name: 'Q01ReportQtySum',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      			component: Q01ReportQtySum
				}
				]
		    }
		]
		
	},
	
	
	{
      path: '/demoIndex',
      name: 'demoIndex',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      },
      component: demoIndex,
      children:[
		    	{
		      path: '/demoOrderListForAddBill',
		      name: 'demoOrderListForAddBill',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demoOrderListForAddBill
		    },
		    		    {
		      path: '/demoOrderForm',
		      name: 'demoOrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demoOrderForm
		    },
		    {
		      path: '/demoLaddingBills',
		      name: 'demoLaddingBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		      },
		      component: demoLaddingBills,
		    },
      		 {
		      path: '/demoSaleOrderList',
		      name: 'demoSaleOrderList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: demoSaleOrderList
		    },
		    {
	      path: '/demoAddBills',
	      name: 'demoAddBills',
	      meta: {
	            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
	        },
	      component: demoAddBills
	    },
    	{
	      path: '/demoOrderDetail',
	      name: 'demoOrderDetail',
	      meta: {
	            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
	        },
	      component: demoOrderDetail
	    },
    	{
	      path: '/demoDataCenter',
	      name: 'demoDataCenter',
	      meta: {
	            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
	        },
	      component: demoDataCenter
	    }
		    
      ]   
   },
   	{
      path: '/hongchang',
      name: 'hongchang',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
    },
      component: hongchang,
             children:[
               	{
		      path: '/hongchangOrderListForAddBill',
		      name: 'hongchangOrderListForAddBill',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		      }, 
		        component: hongchangOrderListForAddBill
		      },
		                     	{
		      path: '/hongchangAddBills',
		      name: 'hongchangAddBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		       },
		        component: hongchangAddBills
		      },
       			{
		      path: '/hongchangLaddingBills',
		      name: 'hongchangLaddingBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },      
		        component: hongchangLaddingBills
		    }, {
		      path: '/hongchangSaleOrderList',
		      name: 'hongchangSaleOrderList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangSaleOrderList
		    },{
		      path: '/historyOrder',
		      name: 'historyOrder',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: historyOrder
		    },
		    {
		      path: '/hongchangDataCenter',
		      name: 'hongchangDataCenter',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangDataCenter
		    },
		    {
		      path: '/hongchangOrderDetail',
		      name: 'hongchangOrderDetail',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangOrderDetail
		    },		    		   
		    {
		      path: '/hongchangOrderForm',
		      name: 'hongchangOrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangOrderForm
		    },
{
		      path: '/hongchangAddGrantBillAccountFirst',
		      name: 'hongchangAddGrantBillAccountFirst',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangAddGrantBillAccountFirst
		    },
		  	{
		      path: '/hongchangGrantBillsList',
		      name: 'hongchangGrantBillsList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangGrantBillsList
		    },
		    {
		      path: '/hongchangGrantBillsForm',
		      name: 'hongchangGrantBillsForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangGrantBillsForm
		    }, 
		    {
		      path: '/hongchangAddGrantBills',
		      name: 'hongchangAddGrantBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangAddGrantBills
		     }
		    
		    ,
		   {
		      path: '/hongchangReportIndex',
		      name: 'hongchangReportIndex',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: hongchangReportIndex,
		      children:[{
      				path: '/hongchangReportCar',
      				name: 'hongchangReportCar',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      				component: hongchangReportCar
					}
//		      ,
//					{
//    				path: '/hongchangReportOrder',
//    				name: 'hongchangReportOrder',
//    				meta: {
//          			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
//    				},
//    			component: hongchangReportOrder
//				}
					,
				{
      				path: '/hongchangReportQtySum',
      				name: 'hongchangReportQtySum',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      			component: hongchangReportQtySum
				}
				]
		    }
		    
       		]
    },
    {
      path: '/jinxitai',
      name: 'jinxitai',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
    },
      component: jinxitai,
         children:[
         		    {
		      path: '/jinxitaiLaddingBills',
		      name: 'jinxitaiLaddjinxitaiingBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiLaddingBills
		     },
		      	{
		      path: '/jinxitaiOrderListForAddBill',
		      name: 'jinxitaiOrderListForAddBill',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		       },
		        component: jinxitaiOrderListForAddBill
		      },
		                     	{
		      path: '/jinxitaiAddBills',
		      name: 'jinxitaiAddBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		       },
		        component: jinxitaiAddBills
		      },
       			{
		      path: '/jinxitaiLaddingBills',
		      name: 'jinxitaiLaddingBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },      
		        component: jinxitaiLaddingBills
		    }, {
		      path: '/jinxitaiSaleOrderList',
		      name: 'jinxitaiSaleOrderList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiSaleOrderList
		    },{
		      path: '/jinxitaiHistoryOrder',
		      name: 'jinxitaiHistoryOrder',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiHistoryOrder
		    },
		    {
		      path: '/jinxitaiDataCenter',
		      name: 'jinxitaiDataCenter',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiDataCenter
		    },
		    {
		      path: '/jinxitaiOrderDetail',
		      name: 'jinxitaiOrderDetail',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiOrderDetail
		    },		    		   
		    {
		      path: '/jinxitaiOrderForm',
		      name: 'jinxitaiOrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiOrderForm
		    },
{
		      path: '/jinxitaiAddGrantBillAccountFirst',
		      name: 'jinxitaiAddGrantBillAccountFirst',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiAddGrantBillAccountFirst
		    },
		  	{
		      path: '/jinxitaiGrantBillsList',
		      name: 'jinxitaiGrantBillsList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiGrantBillsList
		    },
		    {
		      path: '/jinxitaiGrantBillsForm',
		      name: 'jinxitaiGrantBillsForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiGrantBillsForm
		    }, 
		    {
		      path: '/jinxitaiAddGrantBills',
		      name: 'jinxitaiAddGrantBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: jinxitaiAddGrantBills
		     }
         
         ]
    },
    {
      path: '/A01',
      name: 'A01',
      meta: {
            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
    },
      component: A01,
             children:[
               	{
		      path: '/A01OrderListForAddBill',
		      name: 'A01OrderListForAddBill',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		      }, 
		        component: A01OrderListForAddBill
		      },
		                     	{
		      path: '/A01AddBills',
		      name: 'A01AddBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		       },
		        component: A01AddBills
		      },
       			{
		      path: '/A01LaddingBills',
		      name: 'A01LaddingBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },      
		        component: A01LaddingBills
		    }, {
		      path: '/A01SaleOrderList',
		      name: 'A01SaleOrderList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01SaleOrderList
		    },{
		      path: '/A01historyOrder',
		      name: 'A01historyOrder',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01historyOrder
		    },
		    {
		      path: '/A01DataCenter',
		      name: 'A01DataCenter',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01DataCenter
		    },
		    {
		      path: '/A01OrderDetail',
		      name: 'A01OrderDetail',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01OrderDetail
		    },		    		   
		    {
		      path: '/A01OrderForm',
		      name: 'A01OrderForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01OrderForm
		    },
{
		      path: '/A01AddGrantBillAccountFirst',
		      name: 'A01AddGrantBillAccountFirst',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01AddGrantBillAccountFirst
		    },
		  	{
		      path: '/A01GrantBillsList',
		      name: 'A01GrantBillsList',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01GrantBillsList
		    },
		    {
		      path: '/A01GrantBillsForm',
		      name: 'A01GrantBillsForm',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01GrantBillsForm
		    }, 
		    {
		      path: '/A01AddGrantBills',
		      name: 'A01AddGrantBills',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01AddGrantBills
		     }
		    
		    ,
		   {
		      path: '/A01ReportIndex',
		      name: 'A01ReportIndex',
		      meta: {
		            requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
		        },
		      component: A01ReportIndex,
		      children:[{
      				path: '/A01ReportCar',
      				name: 'A01ReportCar',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      				component: A01ReportCar
					}
//		      ,
//					{
//    				path: '/hongchangReportOrder',
//    				name: 'hongchangReportOrder',
//    				meta: {
//          			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
//    				},
//    			component: hongchangReportOrder
//				}
					,
				{
      				path: '/A01ReportQtySum',
      				name: 'A01ReportQtySum',
      				meta: {
            			requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
      				},
      			component: A01ReportQtySum
				}
				]
		    }
		    
       		]
    }
    	
//     {
//    path: '/orderItem',
//    name: 'orderItem',
//    meta: {
//          requireAuth: false,  // 添加该字段，表示进入这个路由是需要登录的
//      },
//    component: orderItem
//  }
  ];



export default new Router({
  routes:routes
})


